package com.zyh.service;

import com.zyh.dao.IUserDao;
import com.zyh.service.impl.UserServiceImpl;
import lombok.Setter;

public class UserServiceFactory2 {

    @Setter
    private IUserDao userDao;

    public IUserService getUserService() {
        System.out.println("执行了实例工厂....");
        UserServiceImpl userService = new UserServiceImpl();
        userService.setUserDao(userDao);
        return userService;
    }
}
